CTAGS = -M

# CAST_OBJ := multicast.o cJSON.o common.o
TEST_OBJ := multitest.o common.o
# TCP_S_OBJ := tcp_server.o cJSON.o common.o dispatchcmd.o

OBJ := hope_halo.o multicast.o cJSON.o common.o tcp_server.o dispatchcmd.o
LINK_LIB := -lm -lpthread
.PHONY: clean
# all : multicast multitest tcp_server
# all: hope_halo multitest
all:  multitest

hope_halo:$(OBJ)
	gcc -o hope_halo $(OBJ) $(LINK_LIB)

# multicast:$(CAST_OBJ)
# 	gcc -o multicast $(CAST_OBJ) $(LINK_LIB)
multitest:$(TEST_OBJ)
	gcc -o multitest $(TEST_OBJ) $(LINK_LIB)
# tcp_server:$(TCP_S_OBJ)
# 	gcc -o tcp_server $(TCP_S_OBJ) $(LINK_LIB)
# common.o:
# 	gcc -c common.c	

# cJSON.o:
# 	gcc -c cJSON.c	-lm

clean:
	-rm *.o multicast multitest	tcp_server hope_halo

